package String1;

import java.util.Scanner;

public class String1_1 {
    public static void main(String[] args) {
        char x;
        while(true){
            System.out.println("请输入一个字符，结束——N");
            Scanner scanner = new Scanner(System.in);
            String next = scanner.next();
            x=next.charAt(0);
            System.out.println("x = " + x);
            if (x=='N'){
                System.out.println("结束了");
                break;
            }
        }
    }
}
